typedef enum {
    BLACK,
    BROWN,
    RED,
    ORANGE,
    YELLOW,
    BLUE,
    GREEN,
    VIOLET,
    GREY,
    WHITE
} resistor_band_t;

static resistor_band_t color_array[10] = { BLACK,
    BROWN,
    RED,
    ORANGE,
    YELLOW,
    GREEN,
    BLUE,
    VIOLET,
    GREY,
    WHITE };

int color_code(resistor_band_t color) {
    return color;
}

resistor_band_t *colors(void) {
    return color_array;
}
